/*
Jack Morris
11/20/14
Page 71
Assinment 1
*/
#include <stdio.h>

int main()
{
  int a,b,c,d;//original, first digit, second digit
  printf("Enter a two-digit number: ");
  scanf("%d", &a);
  b = a / 10;
  d = b * 10;
  c = a - d;  
  printf("The reversal is: %d%d", c, b);
  return(0);
}